<h1>SetTarget</h1>

<p>SetTarget is used to control the time-line of a particular movie clip. The 
action performs a "context switch". All following actions such as GotoFrame, 
Play, etc. will be applied to the specified object until another <b>SetTarget</b> 
action is executed. Setting the target to be the empty string ("") returns the 
target to the movie's main timeline.</p>

<table>

<tr>
<th nowrap>Field Name</th>
<th>Type</th>
<th>Size</th>
<th>Description</th>
</tr>

<tr>
<td nowrap valign="top"><a name="ActionType">Type</a></td>
<td nowrap valign="top">unsigned int</td>
<td nowrap valign="top" align="right">8</td>
<td>Identifies the action when it is encoded.</td>
</tr>

<tr>
<td nowrap valign="top"><a name="ActionLength">Length</a></td>
<td nowrap valign="top">unsigned int</td>
<td nowrap valign="top" align="right">16</td>
<td>The number of bytes in the rest of the encoded action. The total number of
bytes in the encoded action is Length+3.</td>
</tr>

<tr>
<td nowrap valign="top">target</td>
<td nowrap valign="top">String</td>
<td nowrap valign="top" align="right">[length]</td>
<td>The name assigned to a movie clip. Names are assigned using PlaceObject2 when 
the movie clip is placed on the Flash Player's Display List.</td>
</tr>

</table>

<h2>History</h2>

<p>The SetTarget action represents the SetTarget action of the Macromedia Flash (SWF) File Format Specification. It was introduced in Flash 3.</p>
